package com.iwop.moto.service.impl;

import com.iwop.moto.model.SuperRecordModel;
import com.iwop.moto.service.BaseService;
import com.iwop.moto.service.ReportService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author liuwb 2016-07-20 08:55
 */
@Service
public class ReportServiceImpl extends BaseService implements ReportService {

    /**
     * 功能:商家举报 - 新增
     */
    public void insertReport (SuperRecordModel SRModel) {
        getSqlSession().insert("FReportMapper.insertReport",SRModel);
    }

    /**
     * 功能:商家举报 - 修改
     */
    public void updateReport(SuperRecordModel SRModel){
        getSqlSession().update("FReportMapper.updateReport",SRModel);
    }

    /**
     * 功能:商家举报 - 列表
     */
    public List<SuperRecordModel> findReportList(SuperRecordModel SRModel){
        return getSqlSession().selectList("FReportMapper.findReportList",SRModel);
    }

}
